export const listColumns = [{
    width: '50',
    type: "index",
    label: '序号',
  },
  {
    'min-width': '180',
    prop: 'invoiceNum',
    label: '发票号',
    'show-overflow-tooltip': true
  },
  {
    'min-width': '180',
    prop: 'newspaperCode',
    label: '报台单号',
    'show-overflow-tooltip': true
  },
  {
    width: '150',
    prop: 'companyName',
    label: '经销商',
    'show-overflow-tooltip': true
  },
  {
    width: '150',
    prop: 'saleTargetName',
    label: '医院',
    'show-overflow-tooltip': true
  },
  {
    width: '200',
    prop: 'invoiceTittle',
    label: '发票抬头',
    'show-overflow-tooltip': true
  },
  {
    width: '150',
    prop: 'createdAt',
    label: '上传时间'
  },
  {
    width: '150',
    prop: 'saleDate',
    label: '销售日期'
  },
  {
    width: '150',
    prop: 'invoiceDate',
    label: '开票日期'
  },
  {
    width: '120',
    prop: 'invoiceAmount',
    label: '发票金额(元)'
  },
  {
    width: '120',
    prop: 'orderStatus',
    label: '状态',
    formatter: row => (ORDER_STATUS_TYPE[Number(row.orderStatus)])

  },
  {
    minWidth: '100',
    prop: 'operation',
    label: '操作',
    fixed: 'right'
  }
];
const ORDER_STATUS_TYPE = {
  21: '生成',
  22: '冲红',
}
const BUSMODEL_TYPE = {
  1: '批发采购',
  2: '长期寄售',
  3: '手术平台',
  4: '其它',
}
export const rules = {
  saleDateStart: [{
    // type: 'date',
    required: true,
    message: '请选择开始日期',
    trigger: 'blur'
  }],
  saleDateEnd: [{
    // type: 'date',
    required: true,
    message: '请选择结束日期',
    trigger: 'blur'
  }]
}